<style>
    .head_nav a {
        margin-right: 10px;
        font-size: 20px;
    }
</style>


<header style="padding: 0 30px;display: flex;flex-direction: row;align-items: center;justify-content: space-around;background-repeat: no-repeat;background-size: cover">
    <!--标题-->
    <h1 align="left" style="margin-top: -7px">网上零食店 | Online Snack</h1>
    <form action="{{ url_for('web.product_list_ep') }}" method="get" name="form_find_goods" class="form-inline"
          style="">
        <input type="text" class="form-control" name="k" placeholder="搜索商品" value="{{ request.args.k | d('', true) }}"/>
        <button type="submit" class="btn btn-default">
            <span class="glyphicon glyphicon-search"/>
        </button>
    </form>
    <nav class="head_nav" align="right">

        <a href="{{ url_for('web.index_ep') }}"><span>首页</span></a>

        {% if current_user.is_authenticated %}

            <a href="{{ url_for('web.order_list_ep') }}">{{ current_user.email }}</a>

            <a href="{{ url_for('web.order_list_ep') }}">我的订单</a>

            <a href="{{ url_for('logout_ep') }}">注销</a>

        {% else %}

            <a href="{{ url_for('login_ep') }}">登录</a>

            <a href="{{ url_for('register_ep') }}">注册</a>

        {% endif %}

        <a href="{{ url_for('about_ep') }}">关于</a>
    </nav>
</header>